package accel.movements;

import accel.movement.Movement3D;
import accel.activities.R;
import accel.dataholders.Character;
import accel.movement.MovementProperties;
import accel.movement.MovementProperties.Strength;
import accel.movement.MovementProperties.Direction;

public class SimpleHit implements Attack{
	
	private static Movement3D [] pattern = {new Movement3D(new MovementProperties(Strength.Light, Direction.Minus),new MovementProperties(Strength.Any,Direction.Any),new MovementProperties(Strength.Any, Direction.Any))};

	private Character parent;
	
	public SimpleHit(Character parent)
	{
		this.parent = parent;
	}
	
	public Character getParent()
	{
		return parent;
	}
	
	public int name()
	{
		return R.string.simpleHit;
	}

	public Movement3D[] getPattern() {
		return pattern;
	}

	public int attack() {
		return parent == null ? 0 : parent.strength();
	}

	public int energy() {
		return 5;
	}
	
	public int equation()
	{
		return R.string.simpleHitEq;
	}
	
	public AttackType type()
	{
		return AttackType.DrainsHealth;
	}

	public int instructionImage() {
		return R.drawable.simplehit;
	}
	
}
